class Xiaojiejie {
  constructor(private _age: number) {} //private 属性用来封装对象属性
  // 再通过  setter  getter  存取
  get age() {
    return this._age;
  }
  set age(newValue: number) {
    this._age = newValue;
  }

  static sayHello() {
    return "i love u";
  }
}

const girl = new Xiaojiejie(20);

console.log(girl.age);
console.log(Xiaojiejie.sayHello());
